#include "branch_define.h"

// 定义宏生成分支跳转测试汇编代码
#define TEST_BEQ(v0,v1) \
    BEQ(v0,v1); \
    beq $t1, $t0, inst_error; \
    nop \

#define TEST_BNE(v0,v1) \
    BNE(v0,v1); \
    bne $t1, $t0, inst_error; \
    nop \

#define TEST_BGEZ(v0)\
    BGEZ(v0);\
    bgez $t0, inst_error;\

#define TEST_BGTZ(v0) \
    BGTZ(v0); \
    bgtz $t0, inst_error;

#define TEST_BLEZ(v0) \
    BLEZ(v0); \
    blez $t0, inst_error;\
    nop \

#define TEST_BLTZ(v0)\
    BLTZ(v0);\
    bltz $t0, inst_error;\
    nop\

#define TEST_BGEZAL(v0)\
    BGEZAL(v0);\
    bgezal $t0, inst_error;\ 
    nop\

#define TEST_BLTZAL(v0)\
    BLTZAL(v0);\
    bltzal $t0, inst_error;\ 
    nop\
